class iGameInfo extends SimpleGame;

//=============================================================================
// Debug
//=============================================================================
var public bool bEnablePCDebug;

//=============================================================================
// Variables
//=============================================================================
enum EWeapon_Types
{
	EWT_None,
	EWT_PlasmaPistol,
	EWT_PlasmaRiffle,
	EWT_BlasterGun,
};
var array<iGameWeapon>    Weapon_Types;

enum EEnemy_Types
{
	EET_None,
	EET_Soldier,
	EET_Sniper,

	EET_Tank,
};
var array<iGamePawn_Enemy>    Enemy_Types;

var iGamePawn_Player   PlayerCharacter;

//=============================================================================
// Functions: Events
//=============================================================================
event RestartPlayer(Controller NewPlayer)
{
	super.RestartPlayer(NewPlayer);
	//iGamePawn(NewPlayer.Pawn).CreateInventoryFromTemplate(Weapon_Types[EWT_PlasmaRiffle]);
}

event AddDefaultInventory(Pawn P); // Spawn any default inventory for the player. DO NOT USE IT!!!

/**
 * Returns a pawn of the default pawn class
 *
 * @param	NewPlayer - Controller for whom this pawn is spawned
 * @param	StartSpot - PlayerStart at which to spawn pawn
 *
 * @return	pawn
 */
function Pawn SpawnDefaultPawnFor(Controller NewPlayer, NavigationPoint StartSpot)
{
	local Rotator StartRotation;
	local Pawn ResultPawn;

	// don't allow pawn to be spawned with any pitch or roll
	StartRotation.Yaw = StartSpot.Rotation.Yaw;

	ResultPawn = Spawn(PlayerCharacter.Class,,,StartSpot.Location,StartRotation, PlayerCharacter, true);
	if ( ResultPawn == None )
	{
		`log("Couldn't spawn player of type "$PlayerCharacter.Class$" at "$StartSpot);
	}
	return ResultPawn;
}

//=============================================================================
// defaultproperties
//=============================================================================
defaultproperties
{
	/**  DEBUG */
	bEnablePCDebug = TRUE

	bDelayedStart = false
	bWaitingToStartMatch = false
	PlayerControllerClass = class'iPhoneGame.iGamePlayerController'
	HUDType = class'iPhoneGame.iGameHUD'

	DefaultPawnClass = class'iPhoneGame.iGamePawn'
	PlayerCharacter = iGamePawn_Player'Characters.Player'

	Enemy_Types(EET_Soldier) = iGamePawn_Enemy'Characters.TestEnemy'
	Enemy_Types(EET_Tank) = iGamePawn_Enemy'Characters.Tank'

	//Weapon_Types(EWT_PlasmaPistol) = 
	Weapon_Types(EWT_PlasmaRiffle) = iGameWeapon'Weapons.PlasmaRiffle'
	Weapon_Types(EWT_BlasterGun) = iGameWeapon'Weapons.BlasterGun'
}